﻿namespace OT.HikiSecureCenterApis.Service.Resources.Res
{
    public class ResProperties
    {
        /// <summary>
        /// 属性id
        /// </summary>
        public string id { get; set; }
        /// <summary>
        /// 属性名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 属性是否必输，0-非必输，1-必输
        /// </summary>
        public int required { get; set; }
        /// <summary>
        /// 属性类型
        /// </summary>
        public string fieldType { get; set; }
        /// <summary>
        /// 属性描述
        /// </summary>
        public string desc { get; set; }
        /// <summary>
        /// 属性最小长度
        /// </summary>
        public int minLength { get; set; }
        /// <summary>
        /// 属性最大长度
        /// </summary>
        public int maxLength { get; set; }
        /// <summary>
        /// 值类型
        /// </summary>
        public string valueType { get; set; }
        /// <summary>
        /// 是否是备选主键
        /// </summary>
        public int optionKey { get; set; }
        /// <summary>
        /// 是否是主键
        /// </summary>
        public int key { get; set; }
        /// <summary>
        /// 属性正则表达式
        /// </summary>
        public string regular { get; set; }
        /// <summary>
        /// 是否唯一
        /// </summary>
        public int unique { get; set; }
        /// <summary>
        /// ldap中属性名称
        /// </summary>
        public string ldapName { get; set; }
        /// <summary>
        /// ldap中模型
        /// </summary>
        public string objectClass { get; set; }
    }
}
